package com.bootdo.xiaoblog.controller;

import com.bootdo.common.utils.R;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.*;

/**
 * @Auther: liuj
 * @Date: 2019/3/22 15:06
 * @Description: xiaoBlog
 */
@Controller
@RequestMapping("/xiaoblog")
public class xiaoblogController {

    @GetMapping
    String xiaoblog(){
        return "blog/index/main";
    }

    @RequestMapping("xiao")
    @ResponseBody
    R xiao(){
        List<Map<String, Object>> xiaoList = new ArrayList<>();
        Map<String, Object> xiaoMap = new HashMap<>();
        xiaoMap.put("name", "xiao");
        xiaoList.add(xiaoMap);
        xiaoList = Collections.EMPTY_LIST;

        System.out.println(xiaoList);
        return R.ok();
    }


}
